projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf51750
)
API: x11: Change GDK_WINDOW_XDISPLAY() macro
author
Benjamin Otte
<otte@redhat.com>
Tue, 5 Oct 2010 22:13:49 +0000
(
00:13
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 2 Dec 2010 19:17:27 +0000
(20:17 +0100)
Instead of lots of magic, we can go the usual way of requesting the
XDisplay of the window's display. So we do that.
gdk/x11/gdkx.h
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkx.h
b/gdk/x11/gdkx.h
index bde14d56cb644e152e512c6f1ce502bdffb4a89e..bc155ff65ff8a668a8eaa21fd68a3448f022ca4a 100644
(file)
--- a/
gdk/x11/gdkx.h
+++ b/
gdk/x11/gdkx.h
@@
-176,7
+176,7
@@
gint gdk_x11_get_default_screen (void);
#define GDK_DISPLAY_XDISPLAY(display) (gdk_x11_display_get_xdisplay (display))
-#define GDK_WINDOW_XDISPLAY(win) (
gdk_x11_drawable_get_xdisplay (gdk_x11_window_get_drawable_impl
(win)))
+#define GDK_WINDOW_XDISPLAY(win) (
GDK_DISPLAY_XDISPLAY (gdk_window_get_display
(win)))
/**
* GDK_WINDOW_XID: